feat(rpc): add /health endpoint on the metrics server#462
Conversation
🤖 Kimi Code ReviewThe PR looks good. This is a straightforward change that wires up an existing Minor observations:
Security/Operational notes:
Style:
Consensus relevance: None (RPC layer change, no consensus logic). Verdict: Approved with optional suggestion to loosen JSON assertion if future formatting changes are anticipated. Automated review by Kimi (Moonshot AI) · kimi-k2.5 · custom prompt |
🤖 Codex Code ReviewNo findings.
Residual risk: I could not run the targeted RPC tests in this environment because Automated review by OpenAI Codex · gpt-5.4 · custom prompt |
🤖 Claude Code ReviewNow I have a clear picture. Let me compile the verified findings. Key observations from the codebase:
PR Review: feat(rpc): add /health endpoint on the metrics serverThis is a small, focused PR: it wires the existing
The regression test for
The exact pattern
The health response body is Automated review by Claude (Anthropic) · sonnet · custom prompt |
f0a68ae to
e958de0
Compare
Adds a plain GET /health liveness probe on the metrics port (5054), reusing the existing get_health handler. Covers the route with two unit tests: one asserting status/content-type/body, one regression check that /metrics still returns 200.
e958de0 to
cd3e479
Compare
Adds a plain
GET /healthliveness probe on the metrics port (5054), alongside/metrics.The handler reuses the existing
get_healthfunction, so the response body and content-type are identical to the API server's/lean/v0/health. This lets k8s/ops probe the metrics port independently of the API server.GET /health→ 200{"status":"healthy","service":"lean-rpc-api"}withapplication/jsonGET /metricsunchangedTwo unit tests cover the new route and regression-check
/metrics.Stacked on #454.